﻿
using HBase;
using hCommand;

using System;
using System.Collections.Generic;

namespace Persistence {
    public interface ICSDServer : IExtendsServer {
       
        List<CoreStockDet> GetListByStockId(long stockId);
        Page<CoreStockDet> QueryCoreStockDetailPage(CoreStockDetalDto dto);
        List<CoreStockDet> listCoreStockDetail(CoreStockDetalDto dto);
       
        List<CoreStockDet> lastCoreStockDetail( );
        List<CoreStockDet> getDetail(List<String> barCodes);
        List<CoreStockDet> getDetail(long stockId,bool doo);
        List<CoreStockDet> getCoreStockByCode(string boxCode);
       
        long UpdateDetailStatusStockId(long stockId ,int status);
        long UpdateDetailStatusStockDetailId(long stockDetailId ,int status);

        void changeCsdDooDetId(long dooDetId, string add, string del);
        bool UpdatePriorityById(CoreStockDto coreDetailId);
       
        String SaveStock(CoreStockDto coreStock);
        bool deleteStock(CoreStock coreStock);
        List<CoreStockDet> inert(int day);
        List<CoreStockDet> getCSDByDoId(long id);


    }
}
